﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core;

namespace DAL.Classes
{
    public class TheLoai
    {
        #region khai bao cac thuoc tinh anh xa
        public int MaTheLoai { get; set; }
        public string TenTheLoai { get; set; }
        public string MoTa { get; set; }
        public TheLoai() { }
        #endregion

        #region Cac phuong thuc lay du lieu
        public static List<TheLoai> LayTatCa()
        {
            try
            {
                return CBO.FillCollection<TheLoai>(DataProvider.Instance.ExecuteReader("TheLoai_LayTatCa"));
            }
            catch
            {
                return null;
            }
        }
        #endregion
    }
}
